import cv2

def main():
    img = cv2.imread('10/1.bmp')
    SobleY = cv2.Sobel(img, cv2.CV_64F, 0, 1)
    SobleY2 = cv2.convertScaleAbs(SobleY)

    cv2.imshow('origin', img)
    cv2.imshow('SobleY', SobleY)
    cv2.imshow('SobelY2', SobleY2)
    cv2.waitKey(0)
    cv2.destroyAllWindows()

if __name__ == '__main__':
    main()